﻿using System;
using System.Collections.Generic;

using Microsoft.Scripting.Actions;
using Microsoft.Scripting.Generation;
using Microsoft.Scripting.Runtime;


namespace IronTrishul
{
    /// <summary>
    ///  Binder for AST DLR test.
    /// </summary>
    public class WSDLBinder : DefaultBinder
    {
        /// <summary>
        /// Constructor, call parent.
        /// </summary>
        /// <param name="manager">script domaine manager</param>
        public WSDLBinder(ScriptDomainManager manager)
            : base(manager)
        {
        }

        public override bool CanConvertFrom(Type fromType, Type toType, NarrowingLevel level)
        {
            return toType.IsAssignableFrom(fromType);
        }

        public override bool PreferConvert(Type t1, Type t2)
        {
            throw new NotImplementedException();
        }
    }
}
